package com.wltt.product.frfront.config.javafx;

import javafx.application.Application;

import java.net.URL;

public class JavafxStarter {

    private URL url;

    public JavafxStarter(URL url) {
        this.url = url;
    }

    public void startJavafx() {

        Thread thread = new Thread(() -> {
            JavaFxApplication.url = this.url;
            Application.launch(JavaFxApplication.class);
        });
        thread.start();
    }
}
